
import{
TOGGLE_SIDEBAR_COLLAPSE,
CHANGE_BREADCRUMBS
}from "./mutation-types"



const mutations={
    //切换侧边栏的展开收缩
    [TOGGLE_SIDEBAR_COLLAPSE]:state=>{
        state.sidebar.collapse=!state.sidebar.collapse
    },
    //修改面包屑导航路径的显示
    [CHANGE_BREADCRUMBS]:(state,breadcrumbs)=>{
        state.navbar.breadcrumbs=breadcrumbs
    }
}






export default mutations;